<template>
  <div>
    <CommonCard title="累计销售额" value="￥12.2123.23">
      <template>
        <div class="compare-wrapper">
          <div class="compare">
            <span>日同比 </span>
            <span class="emphasis">7.33%</span>
            <div class="increase"></div>
          </div>
          <div class="compare">
            <span>月同比 </span>
            <span class="emphasis">38.79%</span>
            <div class="decrease"></div>
          </div>
        </div>
      </template>
      <template v-slot:footer>
        <span>昨日销售额 </span>
        <span class="emphasis">￥30000000</span>
      </template>
    </CommonCard>
  </div>
</template>

<script>
import commonCardMixin from "../../mixins/commonCardMixin";
export default {
  mixins: [commonCardMixin], //混入模板

};
</script>
<style lang="scss" scoped>
.compare-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .compare {
    display: flex;
    
    align-items: center;
    margin-top: 3px;
    color: #666;
    font-size: 12px;
     
  }
}

 
</style>

